define([
  'utils/Conf',
  'models/Internal',
  'collections/Collection'
], function(Conf, Internal, Collection){
  var Internals = Collection.extend({
    url: Conf.routes.internals.list,

    model: Internal,

    fetch: function(options) {
      options = options || {};
      // Add a type parameter to fetch only internal users.
      options.data || (options.data = {});
      options.data.type= "internal";
      
      Collection.prototype.fetch.call(this, options);
    }  
  });

  return Internals;
});